package service.Serviceimpl;

import Dao.impl.studentGroupDaoImpl;
import Dao.studentGroupDao;
import domain.studentgroup;
import service.studentGroupService;

import java.sql.SQLException;
import java.util.List;

public class studentGroupServiceImpl implements studentGroupService {
  studentGroupDao studentGroupDao = new studentGroupDaoImpl();
    @Override
    public List<studentgroup> findAll() throws SQLException {
        String sql="select * from studentgroup";

        return studentGroupDao.findAll(sql);
    }
}
